package com.suse.warmstill.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.time.LocalDateTime;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 *
 * </p>
 *
 * @author 黄靖
 * @since 2022-11-02
 */
@Getter
@Setter
@TableName("tb_article")
@ApiModel(value = "TbArticle对象", description = "")
public class TbArticle implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("id(自增)")
    private Long id;

    @ApiModelProperty("文章标题")
    private String title;

    @ApiModelProperty("小总结")
    private String summary;

    @ApiModelProperty("文章作者")
    private String authorName;

    @ApiModelProperty("点赞数量")
    private String praiseCounts;

    @ApiModelProperty("阅读数量")
    private String viewCounts;

    @ApiModelProperty("文章内容")
    private Long bodyId;

    @ApiModelProperty("文章封面")
    private String backgrund;

    @ApiModelProperty("文章附图")
    private String img;

    @ApiModelProperty("文章大分类")
    private Long bigCategoryId;

    @ApiModelProperty("小分类")
    private Long littleCategoryId;

    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty("发表日期")
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.UPDATE)
    @ApiModelProperty("更新时间")
    private LocalDateTime updateTime;


}
